

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-30
 * Time: 14:34
 */
// 额外定义成绩比较器
import java.util.Comparator;
class ScoreComparator implements Comparator<Student> {
    @Override
    public int compare(Student s1, Student s2) {
        return -Double.compare(s1.score, s2.score);
    }
}

